package com.hk.commons.entity.product;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hk.commons.DataMasking;
import com.hk.commons.StringHelper;

/**
 * 盈米返回的绑卡信息表
 * 
 * @author htt
 *
 */
@Entity
@Table(name = "t_pay_03")
public class PaymentFromYm implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3816154095631668737L;
	@Id
	private Long id;

	private String accountId;

	private String name;

	private Long paymentId;
	/**
	 * 用户id
	 */
	private Long userId;

	/**
	 * 账户姓名
	 */
	private String accountName;

	/**
	 * 身份证号，字母大写
	 */
	private String identityNo;

	/**
	 * 银行码
	 */
	private Integer bankId;

	/**
	 * 填写该银行卡号
	 */
	private String paymentNo;

	/**
	 * 办理银行卡时的注册电话号码
	 */
	private String phone;

	private Long cts;

	private Long lastUseTime;

	/**
	 * 支付方式, 盈米专用
	 */
	private String paymentMethodId;

	/**
	 * 支持的合作方
	 */
	private String supportCompany;

	public String getSupportCompany() {
		return supportCompany;
	}

	public void setSupportCompany(String supportCompany) {
		this.supportCompany = supportCompany;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getAccountName() {
		return accountName;
	}

	public String getEncryptAccountName() {
		String str = "";
		if (StringHelper.isNotEmpty(accountName)) {
			str = DataMasking.getMaskingData(accountName, 1);
		}
		return str;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getEncryptIdentityNo() {
		String str = "";
		if (StringHelper.isNotEmpty(identityNo)) {
			str = DataMasking.getMaskingData(identityNo, 4, 4);
		}
		return str;
	}

	public String getIdentityNo() {
		return identityNo;
	}

	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}

	public Integer getBankId() {
		return bankId;
	}

	public void setBankId(Integer bankId) {
		this.bankId = bankId;
	}

	public String getPaymentNo() {
		return paymentNo;
	}

	public String getEncryptPaymentNo() {
		String str = "";
		if (StringHelper.isNotEmpty(paymentNo)) {
			str = DataMasking.getMaskingData(paymentNo, 4, 4);
		}
		return str;
	}

	public void setPaymentNo(String paymentNo) {
		this.paymentNo = paymentNo;
	}

	public String getPhone() {
		return phone;
	}

	public String getEncryptPhone() {
		String str = "";
		if (StringHelper.isNotEmpty(phone)) {
			str = DataMasking.getMaskingData(phone, 4, 4);
		}
		return str;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getCts() {
		return cts;
	}

	public void setCts(Long cts) {
		this.cts = cts;
	}

	public Long getLastUseTime() {
		return lastUseTime;
	}

	public void setLastUseTime(Long lastUseTime) {
		this.lastUseTime = lastUseTime;
	}

	public String getPaymentMethodId() {
		return paymentMethodId;
	}

	public void setPaymentMethodId(String paymentMethodId) {
		this.paymentMethodId = paymentMethodId;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(Long paymentId) {
		this.paymentId = paymentId;
	}

}
